package com.hsyt.pms.api.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description: TODO
 * @author wangze@hsyuntai.com
 * @date 2019年2月12日 下午2:45:51
 */
public enum Sex {

    ALL("ALL", "全部"),
    F("F", "男"),
    M("M", "女");

    private String code;
    private String name;

    private Sex(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static Map<String, String> getSexMap() {
        Map<String, String> map = new HashMap<String, String>();
        map.put(ALL.getCode(), ALL.getName());
        map.put(F.getCode(), F.getName());
        map.put(M.getCode(), M.getName());
        return map;
    }
}
